package com.choosefine.it.common.def;

import com.choosefine.it.common.utils.MD5;

/**
 * 模块共性的常量
 * @auth liaozhanggen 2016-11-19 下午6:44:42
 *
 */
public interface CommonConstant {

	/**** start 工人模块常量区 add code by liaozhanggen 2016-11-19 ***/
	String USER_CODE = "userCode";	//用户编号标识
	String PROJECT_CODE = "projectCode";	//项目编号标识
	String TEAM_ID = "teamId";	//班组主键标识
	String ORDER_ASC = "asc";	//升序
	String ORDER_DESC = "desc";	//降序
	String PAGE_NUM = "pageNum";	//当前第几页
	String PAGE_SIZE = "pageSize";	//每页的条数
	String SEARCH = "search";	//查询条件变量
	
	String VERIFY_STATUS = "verifyStatus";	//工人发布状态标识
	String FILE_DIRECTORY_PATH = "file/excel/";	//excel文件上传或下载的路径
	
	String LIST_KEY = "list";	//返回Json中的list集合
	String DATA_KEY = "data";	//返回JSON中的data对象
	String DATE_FOMART = "yyyy年MM月";
	String PAGE_COUNT = "pageCount";	//返回给APP中的页码总数
	String TOTAL = "total";	//返回给APP中的总条数
	String ARRAY = "array";	//返回给APP中的集合列表

	/**** end ***/

	String COMMON_IS_VALID = "%s Is not valid. Please confirm.";
	String WORKER_USERINFO_USERID_IS_NULL = "Current user cannot be empty!";
	String WORKER_FINDWORK_ID_IS_NULL = "Parameter is not correct, please pass the correct parameters, Eg: ID logo can not be empty!";
	String TEAM_RECRUITMENT_ID_IS_NULL = "Parameter is not correct, please pass the correct parameters, Eg: ID can not be empty!";

	String TEAM_IS_NULL = "Team can not be empty";
	String PARAMETER_ERROR = "Parameter transfer error";
	String DATE_IS_EXISTS_SYSTEM = "%s date already exists in the system, please confirm.";
	String DATA_IS_EXISTS_SYSTEM = "%s already exists in the system, please confirm.";
	
	String ACCOUNT_NAME_VALID_LENGH = "账户真实名称一般为汉字，长度不超过12个字符，24个字节";
	String ACCOUNT_NUM_VALID_LENGH = "账户名长度不超过32个字符";
	String ACCOUNT_PASSWORD_VALID_LENGH = "密码 长度为6-12个字节";
	String OPERATOR_ACCOUNT_VALID_IS_NULL = "Current Operator password cannot be empty!";
	String ACCOUNT_PASSWORD_IS_ERROR = "输入的操作员确认密码与登录密码不合";
	String ACCOUNT_IS_EXISTS_ERROR = "输入的新的账户已经存在！请确认";
	String DATA_VALID_DELETED = "The current record has been deleted";
	String LOGIN_VALID_ERROR = "User name or password is incorrect, please confirm";
	String ACCOUNT_NUM_VALID_IS_NULL = "Account cannot be empty!";
	String ACCOUNT_PWD_VALID_IS_NULL = "Password cannot be empty!";
	String ROLE_ACCOUNT_IS_EXISTS = "Current role exists with other accounts, please confirm";
	
	String IS_EXISTS = "数据已存在";
	//基础数据链表校验
	String DATA_NEXT = "数据链表出错";
	String DATA_SYNC_ERROR = "Data synchronization failed !";
	
	
	/******start 非平台物料管理  add code xiongdong 2017-03-02******************/
	public final int NOPLATFORM_TYPE_MATERIAL = 1; //type=1为材料
	public final int NOPLATFROM_TYPE_FACILITY = 2;//type=2为设施
	public final int NOPLATFORM_TYPE_EQUIPMENT = 3;//type=3为设备
	/******end code xiongdong 2017-03-02*************************************/

	/******start 收藏 add code yuin 2017-03-10******************/
	public final int WORKER_COLLECT_TEAM = 1; //1：工人收藏班组发布找工人
	public final int TEAM_COLLECT_WORKER = 2;//2：班组收藏工人发布
	public final int TEAM_COLLECT_MANAGER = 3;//3：班组收藏项目经理发布的找班组
	public final int MANAGER_COLLECT_TEAM = 4; //4：项目经理收藏班组找项目
	public final int MANAGER_COLLECT_COMPANY = 5;//5：项目经理收藏建筑公司发布的找项目承包人
	public final int COMPANY_COLLECT_MANAGER = 6;//6：建筑公司收藏项目经理发布找项目
	/******end code yuxin 2017-03-10*************************************/


	/**
	 * 有效
	 */
	public final int VALID = 0;
	/**
	 * 失效
	 */
	public final int INVALID = 1;
	public final int DEFAULT_PAGE_NUM = 1;	//默认分页为1
	public final int DEFAULT_PAGE_SIZE = 10;	//默认每页展示条数为10条
	public final boolean redisEnabled = false;//是否开启Redis缓存
	
	/** 主用户类型 **/
	public final Integer USER_TYPE_MAIN = 1;

	/**
	 * 已收藏
	 */
	public final int ISCOLLECION=1;
	/**
	 * 未收藏
	 */
	public final int ISNOTCOLLECION=0;

	/**
	 * 收藏的标识
	 */
	public final Integer COLLECT=0;
	public final Integer NOTCOLLECT=1;
	
	/**
	 * 是否插入标识
	 */
	public final Integer ISINSERT=2;

	/**
	 * 上热门
	 */
	public final Integer ISHOT=1;
	
	/**
	 * 不需要上热门 
	 */
	public final Integer ISNOTHOT=0;
	
	int VERIFY_STATUS_0 = 0; //待审核
	int VERIFY_STATUS_1 = 1; //审核通过
	int VERIFY_STATUS_2 = 2; //审核不通过
	
	int FLAG_ZERO = 0;	//参数值默认值
	
	/**
	 * 推送服务常量定义
	 */
	public final String MSG_PUSH_ERR = "推送失败，请检查参数";
	public final String MSG_TYPE_PUBLISH_ISVERIFY = "发布审核通过";
	public final String MSG_PUSH_PUBLISH_ISVERIFY = "您发布的信息已经审核通过";
	public final String MSG_PUSH_PUBLISH_ISNOT_VERIFY = "发布审核未通过";
	public final String MSG_TYPE_PUBLISH_ISNOT_VERIFY = "您发布的信息未通过审核";
	
	/** 默认初始密码 **/
	public final String DEFAULT_PASSWORD = MD5.stringMD5("123456");
	
	/**
	 * 图片后缀：尺寸300*300
	 */
	public final String IMAGE_LARGE_POSTFIX="?x-oss-process=image/resize,m_fixed,h_300,w_300";	
	/**
	 * 非平台详情页面输入的日期格式
	 */
	public final String MSG_DATE_FORMAT_ERROR = "日期格式不正确；正确格式为yyyymm,如：197001";
	
	//当前数据/记录已经收藏过
	public final String COLLECT_DATA_EXISTS="Has been collected";
	//当前数据/记录已经取消收藏
	public final String CANCEL_DATA_EXISTS="Has been canceled collection";
}